<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"
    import="java.util.*"
%>
<link href="css/main.css" rel="stylesheet" type="text/css">

<script src="http://static.ak.facebook.com/js/api_lib/v0.3/FeatureLoader.js" type="text/javascript"></script>
<script type="text/javascript">
	FB_RequireFeatures(["CanvasUtil"], function(){
	FB.XdComm.Server.init('<%= request.getAttribute("FB_SERVER_URL") %>xd_receiver.htm');
	FB.CanvasClient.startTimerToSizeToContent();
});
</script>

<!-- Begin Wrapper -->
   <div id="wrapper">
   
         <!-- Begin Header -->
         <div id="header">
		 
		        
			   
		 </div>
		 <!-- End Header -->
		 
		 <!-- Begin Naviagtion -->
         <div id="navigation">
         	<ul class="nav">
         		<li><a href="<%= request.getAttribute("FB_APP_URL") %>" target="_top">Home</a></li>
				<li><a href="<%= request.getAttribute("FB_APP_URL") %>BaffesServlet" target="_top">Baffes</a></li>
				<li><a class="current" href="<%= request.getAttribute("FB_APP_URL") %>GrapheServlet" target="_top">Graphe des amis</a></li>
				<li><a href="<%= request.getAttribute("FB_APP_URL") %>HistoriqueServlet" target="_top">Historique</a></li>
				<li><a href="<%= request.getAttribute("FB_APP_URL") %>invitation.jsp?api_key=<%= request.getAttribute("FB_API_KEY") %>&app_name=<%= request.getAttribute("FB_APP_NAME") %>	&fb_force_mode=fbml" target="_top">Inviter des Amis</a></li>
			</ul>      
		 </div>
		 <!-- End Naviagtion -->
		 
		 <!-- Begin Content -->
		 <div id="content">
		 <applet archive="applet/GraphFinalSigned1.jar,applet/facebook-java-api-1.7.4.jar,applet/facebook-util-1.7.4.jar,applet/json-1.0.jar,applet/colt.jar,applet/commons-collections-3.2.1.jar,applet/concurrent.jar,applet/jung-1.7.6.jar,applet/resolver.jar,applet/serializer.jar,applet/standard.jar,applet/xercesImpl.jar,applet/xercesSamples.jar,applet/xml-apis.jar,applet/mysql-connector-java-5.1.6-bin.jar" 
	     code="FriendGraphDrawer.class" name="FriendGraphDrawer" width="635" height="580">
			<%
			out.println("<param name='apiKey' value='"+request.getAttribute("apiKey")+"'>");
			out.println("<param name='secretKey' value='"+request.getAttribute("secretKey")+"'>");
			out.println("<param name='sessionKey' value='"+request.getAttribute("sessionKey")+"'>");
			out.println("<param name='idUser' value='"+request.getAttribute("FB_ID")+"'>");
			%>
			Votre navigateur n'est pas compatible java.
		</applet>
		 
		 </div>
		 <!-- End Content -->
		 
		 <!-- Begin Footer -->
		 <div id="footer">
		       
			   <jsp:include page="footer.jsp" />
			    
	     </div>
		 <!-- End Footer -->
		 
   </div>
   <!-- End Wrapper -->
